import { createRouter,createWebHashHistory } from 'vue-router'


const routes = [
    {
        path: '/',
        name:'index',
        component: ()=>import('../components/SendMessage.vue')
    },
    {
        path: '/hello',
        name:'HelloWorld',
        component: ()=>import('../components/HelloWorld.vue')
    },
    {
        path: '/settings',
        name:'Setting',
        component: ()=>import('../components/Setting.vue')
    },
  ];

const router = createRouter({ 
    history: createWebHashHistory(), // 路径格式
    routes: routes // 路由数组
  });


export default router